home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-15 / 486test.zip / 486TEST.ASM next >
Assembly Source File  |  1992-01-20  |  491b  |  23 lines

  1. ; 386/486 memory-write performance test, by Michael Abrash. Result
  2. ; divided by 1000 is the time to write a single dword,
  3. ; in nanoseconds.
  4. ; Designed to work with Zen timer, from _Zen of Assembly Language_,
  5. ; by Michael Abrash. Distribute freely. Use at your own risk.
  6.     .386
  7.     jmp    begin
  8.         align   4
  9. target    dd    ?
  10. begin:
  11.     mov    dx,2
  12.         mov     bx,offset target
  13. loopx:
  14.     call    ZTimerOn
  15.     rept    1000
  16.     mov    [bx],eax
  17.     endm
  18.     call    ZTimerOff
  19.     dec    dx
  20.     jz    xxx
  21.     jmp    loopx
  22. xxx:
  23.